<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>开课吧：新职课 web前端</title>
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1,minimum-scale=1,user-scalable=no">
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="./css/swiper.min.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
    <link rel="stylesheet" href="./css/base.css">
    <link rel="stylesheet" href="./css/style.css">
</head>

<body>
    <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <!-- 第一页 -->
            <div class="swiper-slide">
                <div class="page-cover">
                    <h1 class="ani title-dark" swiper-animate-effect="animate__animated animate__fadeInDown">Web
                        前端语言快速崛起<br>行业应用不断扩张</h1>
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="0.25s" src="./images/a_11.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="0.25s" src="./images/a_13.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="0.75s" src="./images/a_16.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="0.75s" src="./images/a_18.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="1.25s" src="./images/a_21.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="1.25s" src="./images/a_23.jpg" alt="">
                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="1.75s">了解Web前端行业</div>
                </div>
            </div>
            <!-- 第二页 -->
            <div class="swiper-slide">
                <div class="page-cover">
                    <h1 class="ani title-dark" swiper-animate-effect="animate__animated animate__fadeInDown">
                        基础入门高薪IT职业<br>首选Web前端</h1>
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__zoomInLeft"
                        swiper-animate-delay="0.25s" src="./images/a_31.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__zoomInRight"
                        swiper-animate-delay="0.25s" src="./images/a_33.jpg" alt="">
                    <img class="p1 ani" swiper-animate-effect="animate__animated animate__zoomInLeft"
                        swiper-animate-delay="0.75s" src="./images/a_41.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__zoomInRight"
                        swiper-animate-delay="0.75s" src="./images/a_43.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__zoomInLeft"
                        swiper-animate-delay="1.25s" src="./images/a_51.jpg" alt="">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__zoomInRight"
                        swiper-animate-delay="1.25s" src="./images/a_53.jpg" alt="">
                    <div class="ani button-2" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="1.8s">怎么快速入行</div>
                </div>
            </div>
            <!-- 第三页 -->
            <div class="swiper-slide deep-blue bg-1">
                <div class="page-cover">
                    <h1 class="ani title-light" swiper-animate-effect="animate__animated animate__fadeInDown">Web
                        0基础到年薪20万+<br>高级前端开发工程师</h1>
                    <img class="ani p2" swiper-animate-effect="animate__animated animate__flipInX"
                        swiper-animate-delay="0.25s" src="./images/b_03.jpg" alt="">
                </div>
            </div>
            <!-- 第四页 -->
            <div class="swiper-slide">
                <div class="page-cover">
                    <h1 class="ani title-dark p4-title-1" swiper-animate-effect="animate__animated animate__fadeInDown">
                        我适合学前端吗？</h1>
                    <h3 class="ani p4-title-2" swiper-animate-effect="animate__animated animate__zoomIn"
                        swiper-animate-delay="0.25s">0门槛学习，0基础入门<br>薪资起点高，行业对新手友好</h3>
                    <img class="ani p4" swiper-animate-effect="animate__animated animate__lightSpeedInLeft"
                        swiper-animate-delay="0.5s" src="./images/b_07.jpg" alt="">
                    <img class="ani p4" swiper-animate-effect="animate__animated animate__lightSpeedInRight"
                        swiper-animate-delay="0.5s" src="./images/b_09.jpg" alt="">
                    <img class="ani p4" swiper-animate-effect="animate__animated animate__lightSpeedInLeft"
                        swiper-animate-delay="1s" src="./images/b_13.jpg" alt="">
                    <img class="ani p4" swiper-animate-effect="animate__animated animate__lightSpeedInRight"
                        swiper-animate-delay="1s" src="./images/b_14.jpg" alt="">
                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="1.5s">点击咨询</div>
                </div>
            </div>

            <!-- 第五页 -->
            <div class="swiper-slide gray">
                <div class="page-cover">
                    <h1 class="ani title-dark p5-title-1" swiper-animate-effect="animate__animated animate__fadeInDown">
                        开课吧独创教学模式<br>企业师父带学员自信入行</h1>
                    <div>
                        <img class="ani p5" swiper-animate-effect="animate__animated animate__fadeInDownBig"
                            swiper-animate-delay="0.5s" src="./images/b_18.jpg" alt="">
                    </div>
                    <div>
                        <img class="ani p4" swiper-animate-effect="animate__animated animate__fadeInLeft"
                            swiper-animate-delay="0.75s" src="./images/b_22.jpg" alt="">
                        <img class="ani p4" swiper-animate-effect="animate__animated animate__fadeInRight"
                            swiper-animate-delay="0.75s" src="./images/b_23.jpg" alt="">
                    </div>
                    <div>
                        <img class="ani p5" swiper-animate-effect="animate__animated animate__fadeInDownBig"
                            swiper-animate-delay="1.25s" src="./images/b_36.jpg" alt="">
                        <p class="ani p5-c" swiper-animate-effect="animate__animated animate__fadeInDownBig"
                            swiper-animate-delay="1.5s">
                            以企业开发团队配置为标准，8-15人小班学习
                        </p>
                    </div>
                    <div>
                        <img class="ani p5" swiper-animate-effect="animate__animated animate__fadeInDownBig"
                            swiper-animate-delay="2s" src="./images/b_39.jpg" alt="">
                        <p class="ani p5-c" swiper-animate-effect="animate__animated animate__fadeInDownBig"
                            swiper-animate-delay="2.25s">
                            以企业开发团队配置为标准，8-15人小班学习
                        </p>
                    </div>
                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="2.75s">申请体验课程</div>
                </div>
            </div>

            <!-- 第六页 -->
            <div class="swiper-slide deep-blue">
                <div class="page-cover">
                    <h1 class="ani title-light p4-title-1"
                        swiper-animate-effect="animate__animated animate__fadeInDown">
                        企业交付级项目实战</h1>
                    <h3 class="ani p6-title-2" swiper-animate-effect="animate__animated animate__zoomIn"
                        swiper-animate-delay="0.25s">真实培养解决问题能力<br>收获可写入简历的真实项目经验</h3>

                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="0.75s" src="./images/b_44.jpg" alt="" style="vertical-align: top;">
                    <img class="ani p1" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="0.75s" src="./images/b_43.jpg" alt="">
                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="1.25s">查看更多实战项目</div>
                </div>
            </div>

            <!-- 第七页 -->
            <div class="swiper-slide">
                <div class="page-cover">
                    <h1 class="ani title-dark p7-title-1"
                        swiper-animate-effect="animate__animated animate__backInDown">
                        高级前端开发工程师<br>核心技术全覆盖</h1>
                    <div class="ani p7-btn" swiper-animate-effect="animate__animated animate__fadeInDown"
                        swiper-animate-delay="0.25s">0基础</div>
                    <div>
                        <img class="ani p7-arraw" swiper-animate-effect="animate__animated animate__fadeInDown"
                            swiper-animate-delay="0.75s" src="./images/arraw-2.png" alt="">
                    </div>
                    <div>
                        <img class="ani p7" swiper-animate-effect="animate__animated animate__zoomInDown"
                            swiper-animate-delay="1.25s" src="./images/c-222_03.jpg" alt="">
                    </div>
                    <div>
                        <img class="ani p7-arraw" swiper-animate-effect="animate__animated animate__fadeInDown"
                            swiper-animate-delay="1.75s" src="./images/arraw-2.png" alt="">
                    </div>
                    <div class="ani p7-btn" swiper-animate-effect="animate__animated animate__fadeInDown"
                        swiper-animate-delay="2.25s">高级前端开发工程师</div>
                    <div class="ani button-2" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="2.75s">领取学习路线图</div>
                </div>

            </div>

            <!-- 第八页 -->
            <div class="swiper-slide deep-blue">
                <div class="page-cover">
                    <h1 class="ani title-light" swiper-animate-effect="animate__animated animate__fadeInDown">
                        前端大神带你练级<br>从0基础到阿里P6的飞跃</h1>
                    <img class="ani p8-1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="0.5s" src="./images/c_48.jpg" alt="">
                    <img class="ani p8-2" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="0.5s" src="./images/c_50.jpg" alt="">
                    <hr style="opacity: 0.1;">
                    <img class="ani p8-1" swiper-animate-effect="animate__animated animate__fadeInLeft"
                        swiper-animate-delay="1s" src="./images/c_53.jpg" alt="">
                    <img class="ani p8-2" swiper-animate-effect="animate__animated animate__fadeInRight"
                        swiper-animate-delay="1s" src="./images/c_54.jpg" alt="">

                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="1.5s">咨询专业老师</div>
                </div>
            </div>

            <!-- 第九页 -->
            <div class="swiper-slide">
                <div class="page-cover">
                    <h1 class="ani title-dark" swiper-animate-effect="animate__animated animate__fadeInDown">
                        6大场景沉浸式学习<br>4师全天候伴学服务</h1>
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="0.5s" src="./images/c_57.jpg" alt="">
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="0.5s" src="./images/c_59.jpg" alt="">
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="1s" src="./images/c_62.jpg" alt="">
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="1s" src="./images/c_63.jpg" alt="">
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="1.5s" src="./images/c_66.jpg" alt="">
                    <img class="ani p9" swiper-animate-effect="animate__animated animate__flipInY"
                        swiper-animate-delay="1.5s" src="./images/c_67.jpg" alt="">
                    <div class="ani button-1" swiper-animate-effect="animate__animated animate__fadeInUp"
                        swiper-animate-delay="2s">更多教学服务</div>
                </div>
            </div>

            <!-- 第十页 -->
            <div class="swiper-slide bg-banner">
                <div class="page-cover">
                    <div class="p10-m">
                        <div class="p10-title">
                            <h1> <span>免费申请</span>学习大礼包</h1>
                            <p>赠送超值学习大礼包，限量放松</p>
                        </div>
                        <div class="p10-form">
                            <form action="#">
                                <div class="form-item username">
                                    <input type="text" placeholder="方便我们称呼您">
                                </div>
                                <div class="form-item phone">
                                    <input type="text" placeholder="方便我们联系您">
                                </div>
                                <div class="submit">
                                    <input type="submit" value="确认提交">
                                </div>
                            </form>
                        </div>
                        <div class="p10-bot">
                            <div>
                                <img src="./images/a_07.jpg" alt="">
                                <p>Web热门<br>电子书</p>
                            </div>
                            <div>
                                <img src="./images/a_07.jpg" alt="">
                                <p>热门实战<br>项目课程</p>
                            </div>
                            <div>
                                <img src="./images/a_07.jpg" alt="">
                                <p>实战项目<br>课程答疑</p>
                            </div>
                        </div>

                    </div>
                </div>
            </div>

        </div>
    </div>

    <!-- 下一页箭头 -->
    <div id="nextbtn"><img class="fadeInUp" src="./images/arrow.png" alt=""></div>
    <!-- 音乐图标 -->
    <img src="./images/music-icon.png" alt="music" id="music_icon">
    <!-- 音乐 -->
    <audio src="./audio/music.mp3" id="audio"></audio>


    <!-- 引入swiper的js文件 -->
    <script src="./js/swiper.min.js"></script>
    <!-- 引入swiper动画的js文件 -->
    <script src="./js/swiper.animate.min.js"></script>
    <!-- 引入jQuery,这是一个JavaScript的库文件 -->
    <script src="./js/jquery-1.11.2.min.js"></script>

    <script>
        // 音乐播放状态
        let state = 0;
        // 控制音乐播放
        let isPlay = false;

        // 初始化swiper
        var swiper = new Swiper('.swiper-container', {
            direction: 'vertical',
            effect: 'slide',
            on: {
                init: function () {
                    swiperAnimateCache(this); //隐藏动画元素 
                    this.emit('slideChangeTransitionEnd'); //在初始化时触发一次slideChangeTransitionEnd事件
                },
                slideChangeTransitionEnd: function () {
                    if (state === 0) {
                        state = 1;
                        playMusci()
                    }
                    swiperAnimate(this); //每个slide切换结束时运行当前slide动画
                    this.slides.eq(this.activeIndex).find('.ani').removeClass('ani'); //动画只展示一次
                }
            }
        });

        // 播放音乐
        function playMusci() {
            $("#audio")[0].play()
            isPlay = true;
            $("#music_icon").addClass('icon-ani')
            $("#music_icon").removeClass('icon-ani-pause')
            state = 2;
        }
        // 暂停音乐
        function pauseMusic() {
            $("#audio")[0].pause()
            isPlay = false;
            $("#music_icon").addClass('icon-ani-pause')
        }
        // 点击右上角图标控制音乐播放或者暂停
        $("#music_icon").click(function () {
            if (!isPlay) {
                playMusci()
            } else {
                pauseMusic()
            }
        })
    </script>
</body>

</html>